home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / livelabl / livelabe.exe / SAMPLE1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-07-22  |  4.0 KB  |  128 lines

  1. VERSION 4.00
  2. Begin VB.Form frmSample1 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Sample 1 - Using Live Number In a Setup Application"
  5.    ClientHeight    =   3135
  6.    ClientLeft      =   3510
  7.    ClientTop       =   5295
  8.    ClientWidth     =   6060
  9.    ControlBox      =   0   'False
  10.    Height          =   3540
  11.    Icon            =   "Sample1.frx":0000
  12.    Left            =   3450
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3135
  17.    ScaleWidth      =   6060
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   4950
  20.    Width           =   6180
  21.    Begin VB.Timer Timer1 
  22.       Enabled         =   0   'False
  23.       Interval        =   500
  24.       Left            =   5580
  25.       Top             =   1710
  26.    End
  27.    Begin VB.CommandButton cmdStart 
  28.       Caption         =   "&Start"
  29.       Default         =   -1  'True
  30.       Height          =   375
  31.       Left            =   4995
  32.       TabIndex        =   4
  33.       Top             =   2295
  34.       Width           =   1005
  35.    End
  36.    Begin VB.CommandButton cmdExit 
  37.       Caption         =   "&Exit"
  38.       Enabled         =   0   'False
  39.       Height          =   375
  40.       Left            =   4995
  41.       TabIndex        =   3
  42.       Top             =   2700
  43.       Width           =   1005
  44.    End
  45.    Begin LiveLabelsLib.LiveNumber LiveNumber1 
  46.       Height          =   600
  47.       Left            =   90
  48.       TabIndex        =   5
  49.       Top             =   2430
  50.       Width           =   2355
  51.       _Version        =   65536
  52.       _ExtentX        =   4154
  53.       _ExtentY        =   1058
  54.       _StockProps     =   41
  55.       BackColor       =   0
  56.       DigitCount      =   4
  57.       BeginProperty DigitFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  58.          Name            =   "Verdana"
  59.          Size            =   20.25
  60.          Charset         =   0
  61.          Weight          =   400
  62.          Underline       =   0   'False
  63.          Italic          =   0   'False
  64.          Strikethrough   =   0   'False
  65.       EndProperty
  66.    End
  67.    Begin VB.Label lblTitle 
  68.       AutoSize        =   -1  'True
  69.       Caption         =   "Files Copied"
  70.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  71.          Name            =   "Verdana"
  72.          Size            =   14.25
  73.          Charset         =   0
  74.          Weight          =   700
  75.          Underline       =   0   'False
  76.          Italic          =   0   'False
  77.          Strikethrough   =   0   'False
  78.       EndProperty
  79.       Height          =   345
  80.       Left            =   90
  81.       TabIndex        =   2
  82.       Top             =   2070
  83.       Width           =   1950
  84.    End
  85.    Begin VB.Label Label2 
  86.       Caption         =   "Click the START button to start the demo. This is just a demo, no files are actually copied."
  87.       ForeColor       =   &H00800000&
  88.       Height          =   600
  89.       Left            =   90
  90.       TabIndex        =   1
  91.       Top             =   1080
  92.       Width           =   2985
  93.    End
  94.    Begin VB.Label Label1 
  95.       Caption         =   $"Sample1.frx":08CA
  96.       Height          =   645
  97.       Left            =   90
  98.       TabIndex        =   0
  99.       Top             =   135
  100.       Width           =   5100
  101.       WordWrap        =   -1  'True
  102.    End
  103. Attribute VB_Name = "frmSample1"
  104. Attribute VB_Creatable = False
  105. Attribute VB_Exposed = False
  106. Option Explicit
  107. Private Sub cmdExit_Click()
  108.     Unload Me
  109. End Sub
  110. Private Sub cmdStart_Click()
  111.     cmdStart.Enabled = False
  112.     cmdExit.Enabled = True
  113.     Timer1.Enabled = True
  114. End Sub
  115. Private Sub Form_Load()
  116.     LiveNumber1.DigitChangedSound = App.Path & "\" & "Tick.WAV"
  117. End Sub
  118. Private Sub Timer1_Timer()
  119.     LiveNumber1.Add 1
  120.     If (LiveNumber1.Value = 10) Then
  121.       LiveNumber1.DigitBackColor = RGB(128, 0, 0)
  122.       LiveNumber1.ForeColor = vbWhite
  123.       
  124.       lblTitle.Caption = "Done."
  125.       Timer1.Enabled = False
  126.     End If
  127. End Sub
  128.